package com.wufan.day06;

/**
 *
 * @author SongWufan
 * @date 2021/3/18 22:00
 */
public class ExtendsTest {
    public static void main(String[] args) {
        Person1 person1 = new Person1();
        person1.age = 21;
        person1.eat();

        Student student = new Student();
        student.age = 22;
        student.eat();
        student.sleep();
        student.name = "wufan";

        student.breath();

        Creature creature = new Creature();
        System.out.println(creature.toString());

    }
}
